package org.ruanjj.multithread;

public class ProductorConsumerTest {
    public static void main(String[] args) {
        Clerk clerk = new Clerk();
        Procuctor p1 = new Procuctor(clerk);
        Thread t1 = new Thread(p1,"生产者");

        Consumer  c1 = new Consumer(clerk);
        Thread t2 = new Thread(c1,"消费者");

        t1.start();
        t2.start();
    }
}
